#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>

int main()
{
  pid_t id = fork();
  if(id == 0){
    //child
    int cnt = 5;
    while(cnt){
      printf("I am child , cnt:%d, pid:%d", cnt, getpid());
    }
  }
  else{

  }
  /*while(1){
    printf("I am a process, pid:%d\n", getpid());
  }*/
  return 0;
}
